import SettingsModal from 'flarum/components/SettingsModal';

export default class XunSearchSettingsModal extends SettingsModal {
  className() {
    return 'XunSearchSettingsModal Modal--small';
  }

  title() {
    return app.translator.trans('xunsearch.admin.title');
  }

  form() {
    return [
      <div className="Form-group">
        <label>{app.translator.trans('xunsearch.admin.index_server')}</label>
        <input className="FormControl" bidi={this.setting('xunsearch.index_server')}/>
      </div>,

      <div className="Form-group">
        <label>{app.translator.trans('xunsearch.admin.search_server')}</label>
        <input className="FormControl" bidi={this.setting('xunsearch.search_server')}/>
      </div>,
    ];
  }
}
